﻿using Topshelf;

namespace Dqaqs.Host
{
	class Program
	{
		static void Main(string[] args)
		{
			HostFactory.Run(x =>
								{
									x.Service<DqaqsHost>(s =>
															{
																s.SetServiceName("Data Quality Algorithm Host");
																s.ConstructUsing(name => new DqaqsHost());
																s.WhenStarted(ds => ds.Start());
																s.WhenStopped(ds => ds.Stop());
															});
									x.RunAsLocalSystem();
									x.SetDisplayName("Data Quality Algorithm Host");
									x.SetServiceName("DqSvcHost");
								});
		}
	}
}
